package com.sport.service;

import com.sport.pojo.dto.CampMessageDto;
import com.sport.pojo.dto.GameResults;
import com.sport.pojo.dto.RoomDto;
import com.sport.pojo.dto.UserListDto;
import com.sport.pojo.entity.Room;
import com.sport.pojo.entity.User;
import com.sport.pojo.vo.RoomStatusVo;
import com.sport.pojo.vo.RoomVo;
import com.sport.pojo.entity.UandR;

import java.util.List;

public interface RoomService {

    List<RoomVo> findRoom(String currentAccount);
    int createRoom(RoomDto roomDto);
    RoomVo findRoomByUserId(String userId);
    int userIntoRoom(UandR uandR);
    int userChangeCamp(UandR uandR);
    public CampMessageDto showRoomNumber(String roomId);

    int exitRoom(UandR uandR);
    int trailSubmitResults(GameResults gameResults);
    int destroyRoom(UandR uandR);

    int kickUser(UandR uandR);

    List<RoomVo> findNormalRoom(String currentId);
    int trailBeginGame(String roomId);

    int startGame(String roomId, String place);

    int  endGame(String roomId);
    RoomStatusVo findRoomStatusByRoomId(String roomId);

    List<RoomVo>  searchRoom(String roomHostName,String type);
}